Example 2: Using the Toolbox routine HideWindow to implement the Hide method.
{method to hide a window. }
-- part contents for card part 2
----- text -----
procedure TWindow.Hide;
begin
HideWindow(wPtr);
end;
The TWindow object is easily understood because windows are an identifiable element of the Macintosh interface. Other elements are not as visible but make just as useful objects. In this program there are two: the event object, TEvent and the error handler object, TError. Let's look at them.
Events are the means whereby the operating system notifies a Macintosh application that some action is required. How that action is handled is up to the application. Some of the events are caused by the user